package com.hxkj.service;

import com.hxkj.domain.bo.PayParameter;
import com.hxkj.domain.bo.WithdrawParameter;

/**
 * 支付服务
 * <p>
 * Create by chenwei on 2018/7/9 14:21
 */
public interface AliPayService {

    /**
     * 支付
     * @param payParameter
     * @return
     */
    String alipay(PayParameter payParameter) throws Exception;

    /**
     * 充值通知
     * @throws Exception
     */
    void payCallback() throws Exception;


    /**
     * 获取状态
     * @param payParameter
     * @throws Exception
     */
    void getPayStatus(PayParameter payParameter) throws Exception;

    /**
     * 提现,该接口会同步调用成功或者失败
     * @param withdrawParameter
     * @throws Exception
     */
    void withdraw(WithdrawParameter withdrawParameter) throws Exception;
}
